﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Fantacid303.ProcessAffinityControl.Manager.ValueProviders;
using Fantacid303.ProcessAffinityControl.Manager.MainWindowViewModels;
using Fantacid303.ProcessAffinityControl.Common;

namespace Fantacid303.ProcessAffinityControl.Manager.UserControls
{
	/// <summary>
	/// Interaction logic for GeneralSettingsEdit.xaml
	/// </summary>
	public partial class GeneralSettingsEdit: UserControl
	{
		public GeneralSettingsEdit()
		{
			InitializeComponent();
		}

		private void textBox1_TextChanged(object sender, TextChangedEventArgs e)
		{
			int value=0;

			if (!int.TryParse(this.textBox1.Text, out value))
				this.textBox1.Text = "60";
			else
			{
				if (value < 10)
					this.textBox1.Text = "10";
			}
		}


	}
}
